﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TakeoutExpress.Support.Linq
{
    [Serializable()]
    public partial class UserSite
    {
        partial void OnValidate(System.Data.Linq.ChangeAction action)
        {
            if (this.Username == null || this.Username == string.Empty)
                throw new ArgumentException("Username is null, the user must login to perform this action");
        }
    }

    [Serializable()]
    public partial class TakeoutProvider
    {
        partial void OnValidate(System.Data.Linq.ChangeAction action)
        {
            if (action == System.Data.Linq.ChangeAction.Insert)
            {
                if (this.ExpirationTime < DateTime.Now)
                    throw new ArgumentException("Expiration time is in the past.  Expiration times must be specified in the future.");
            }
        }
    }

    [Serializable()]
    public partial class Audience
    {

    }

    [Serializable()]
    public partial class AudienceMember
    {

    }

    [Serializable()]
    public partial class Category
    {
    }

    [Serializable()]
    public partial class MenuItem
    {

    }

    [Serializable()]
    public partial class Menus
    {

    }

    [Serializable()]
    public partial class OrderItem
    {
    }

    [Serializable()]
    public partial class PreferredMenu
    { }

    [Serializable()]
    public partial class PreferredTakeoutMenuItem
    {
    }

    [Serializable()]
    public partial class Site
    {

    }
    [Serializable()]
    public partial class TakeoutProviderAudience
    {

    }
    [Serializable()]
    public partial class TakeoutUser
    {
    }
    
}
